
<body class="ui-mobile-viewport ui-overlay-a">
<section data-role="page" data-title="家电批发商城,登录" data-url="{:U('User/login')}" tabindex="0" class="ui-page ui-page-theme-a ui-page-active" style="min-height: 667px;">
  
<header data-role="header" class="w-header ui-header ui-bar-inherit" role="banner">
    <a href="javascript:void(0)" class="micon-back w-none-background ui-link ui-btn-left ui-btn ui-icon-custom ui-btn-icon-notext ui-shadow ui-corner-all" data-url="" data-role="button" data-icon="custom" data-iconpos="notext" role="button">返回</a>
    <h2 class="ui-title" role="heading" aria-level="1">登录</h2>
    <a href="/wap/index.php?m=default&amp;c=index&amp;a=index" class="micon-home w-none-background ui-link ui-btn-right ui-btn ui-icon-custom ui-btn-icon-notext ui-shadow ui-corner-all" data-role="button" data-icon="custom" data-iconpos="notext" role="button">首页</a>
</header>
<section class="w-top-main-menu" id="top_menubar">
  <nav data-role="navbar" class="header-nav-glyphish ui-navbar" role="navigation">
  <ul class="ui-grid-c">
    <li class="ui-block-a"><a class="micon-home ui-link ui-btn ui-icon-custom ui-btn-icon-top" href="index.php" data-icon="custom" data-transition="slide">首页</a></li>
    <li class="ui-block-b"><a class="micon-class ui-link ui-btn ui-icon-custom ui-btn-icon-top" href="/wap/index.php?m=default&amp;c=category&amp;a=cates&amp;id=41" data-icon="custom" data-transition="slide">商品</a></li>
    <li class="ui-block-c"><a class="micon-cart ui-link ui-btn ui-icon-custom ui-btn-icon-top" href="/wap/index.php?m=default&amp;c=flow&amp;a=index" data-icon="custom" data-transition="slide">采购</a></li>
    <li class="ui-block-d"><a class="micon-my ui-link ui-btn ui-icon-custom ui-btn-icon-top" href="/wap/index.php?m=default&amp;c=user&amp;a=index" data-icon="custom" data-transition="slide">我的</a></li>
  </ul>
</nav>
</section>
  <section data-role="content" class="w-content ui-content" role="main"> 
    <form name="formLogin" action="{:U('User/actlogin')}" method="post" data-ajax="false" onsubmit="return check_login_form()">
      <div class="w-login-alert" id="username_alert"></div>
      <div class="w-login-box">
        <input data-role="none" class="username" type="text" name="username" placeholder="用户名" id="username">
        <p class="line"></p>
        <input data-role="none" class="password" type="password" name="password" placeholder="密码" id="password" datatype="*6-16">

      </div>
        <input data-role="none" class="remember" value="1" type="checkbox" name="remember" id="remember" datatype="*6-16">记住密码
      <div class="w-login-alert" id="password_alert"></div>
      <input type="hidden" name="back_act" value="http%3A%2F%2Fs3.com%2Fwap%2Findex.php%3Fm%3Ddefault%26c%3Duser%26a%3Dindex">
      <div class="w-login-sub">

        <input type="submit" data-theme="s" name="sub" value="立即登录">
      </div>
      
      
      <div class="w-login-findpwd">
        <a href="/wap/index.php?m=default&amp;c=user&amp;a=get_password_one" class="ui-link">找回密码</a>
      </div>
  </form></section>

  <div class="w-screen-menu">
  <div class="w-screen">
    <div class="w-tag" id="bottom_menu">
		<div class="w-menu" id="bottom_menubar">
			<ul>
				<li><a href="index.php" data-transition="pop" class="ui-link"><img src="__PUBLIC__/mobile/images/icon_home.png"><p>首页</p></a></li>
				<li><a href="/wap/index.php?m=default&amp;c=category&amp;a=cates&amp;id=41" data-transition="pop" class="ui-link"><img src="__PUBLIC__/mobile/images/icon_class.png"><p>分类</p></a></li>
				<li><a href="/wap/index.php?m=default&amp;c=flow&amp;a=cart" data-transition="pop" class="ui-link"><img src="__PUBLIC__/mobile/images/icon_cart.png"><p>进货单</p></a></li>
				<li><a href="/wap/index.php?m=default&amp;c=user&amp;a=index" data-transition="pop" class="ui-link"><img src="__PUBLIC__/mobile/images/icon_my.png"><p>我的</p><p></p></a></li>
			</ul>
		</div>
    <div class="clear"></div>
    </div>
  </div>
</div>
<script>
function check_login_form()
{
  if($("#username").val() == '')
  {
    $("#username_alert").html("用户名不能为空！");
    return false;
  }

  if($("#password").val() == '')
  {
    $("#password_alert").html("密码不能为空！");
    return false;
  }
}
</script>
